Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add macos and windows and more robust scandir tests #74

Closed
wants to merge 2 commits into from

Conversation

Conni2461
Copy link
Collaborator

@Conni2461 Conni2461 commented Feb 14, 2021

CI doesn't show me any issues for scandir when using macos.

I probably should also add windows ci and port that to telescope at some point :)

CC @clason

@Conni2461 Conni2461 force-pushed the macos_scandir branch 12 times, most recently from bf97a40 to c6ed710 Compare February 16, 2021 22:33
@Conni2461 Conni2461 force-pushed the macos_scandir branch 17 times, most recently from eec1461 to 8b83bda Compare February 22, 2021 18:31
@Conni2461 Conni2461 force-pushed the macos_scandir branch 8 times, most recently from 04387f8 to c1997cd Compare February 22, 2021 19:53
@@ -106,7 +116,7 @@ describe('Job', function()

job:sync()

assert.are.same(job:result(), { 'A=100' })
assert.are.same(true, contains(job:result(), { 'A=100' }))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows doesn't get a clean env. Or maybe it is a clean env but windows needs like 100 env vars to even function 🤣 Idk we just check that it contains now. Doesn't matter

@Conni2461 Conni2461 changed the title ci: macos and more scandir test in order to track down macos issues ci: add macos and windows and more scandir tests Feb 22, 2021
@Conni2461 Conni2461 changed the title ci: add macos and windows and more scandir tests ci: add macos and windows and more robust scandir tests Feb 22, 2021
@@ -31,6 +34,11 @@ end)
function harness.test_directory_command(command)
local split_string = vim.split(command, " ")
local directory = table.remove(split_string, 1)
if is_windows then
for k, v in ipairs(split_string) do
split_string[k] = v:gsub('\\', '\\\\')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First we need to do that because we fail because of some escape char. So we do that and afterwards we move back to /

@Conni2461
Copy link
Collaborator Author

Closing. I don't wanna implement windows support. I might port the more robust scandir tests and the mac ci. Some other time

@Conni2461 Conni2461 closed this Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant